body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #f8f8f8;
}

/* Global button style */
.button {
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
  color: #ffffff;
  background-color: rgb(0, 120, 212);
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  font-size: 1rem;
  min-width: 6rem;
}

.button:hover {
  background-color: rgb(16, 110, 190);
}

.button.disabled {
  pointer-events: none;
  background-color: #cccccc;
  color: #666666;
}

#hometown {
	font-family: "黑体";
	font-size: 50px;
	background: linear-gradient(to right, purple, blue);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	/*margin-left: 660px;
	*/

}

#jq {
		/*display: inline;*/
	text-align: center;
}

/* Main section */

.main {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main .title h3 {
  font-size: 2.3rem;
  font-weight: 300;
  margin: 0.8rem 0;
}

.hidden {
  display: none;
}

.reveal {
  opacity: 0;
}

#menu {
	font: 15px verdana, arial, "黑体";
	margin: 0;
	padding: 0;
}

#menu li {
	list-style: none;
	/* 将默认的列表符号去掉 */
	float: left;
	/* 往左浮动 */
	display: block;
}

#menu li a {
	display: block;
	width: 750px;
	height: 35px;
	line-height: 35px;
	/* 设置行高，将行高和高度设置同一个值，让单行文本垂直居中 */
	text-align: center;
	/* 居中对齐文字 */
	background-color: darkorchid;
	color: #FFFFFF;
	text-decoration: none;
	/* 去掉下划线 */
	border-right: 1px solid #FFFFFF;
	/* 在左侧加上分隔线 */
	margin: 0px;
}

#menu li a:hover {
	background: indigo;
	font-color: aquamarine;
}

.reveal:hover {
  opacity: 0.2;
}

input {
	margin-left: 20px;
	margin-bottom: 10px;
}
.search {
	margin-top: 12px;
}

.hero-scan {
	position: absolute;
    z-index: 7;
    top: 0;
    left: 0;
    width: 100%;
    filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="transparent",endColorStr="#3e88f1",gradientType=0);
    border-bottom: 1% solid #3e88f1;
    -webkit-animation: scan 1.2s infinite;
    -moz-animation: scan 1.2s infinite;
    animation: scan 1.2s infinite;
    background: -webkit-gradient(linear,left top,left bottom,from(transparent),to(#3e88f1));
    background: -webkit-linear-gradient(top,transparent,#3e88f1);
    background: -moz-linear-gradient(top,transparent,#3e88f1);
    background: linear-gradient(180deg,transparent,#3e88f1);
}

@keyframes scan{
	0%{ height: 0 }
	to{ opacity: 0; height: 55%; }
}

/* Upload box */
.upload-box {
  font-size: 0.8rem;
  color: #666666;
  cursor: pointer;
  width: 16rem;
  height: 20rem;
  background: #fff;
  border: 0.1rem dashed #838388;
  border-radius: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 1rem 0 1.5rem 0;
  text-align: center;
}

.upload-box.dragover {
  /* background-color: grey; */
  color: #eeeeee;
  border: 0.1rem solid rgb(0, 120, 212);
  box-shadow: inset 0 0 0 0.1rem rgb(0, 120, 212);
}

.upload-box:hover {
  border-color: rgb(0, 120, 212);
}

.upload-box #image-preview {
  max-width: 14rem;
  max-height: 8rem;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
}

#image-result {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  max-height: 20rem;
}

#image-box {
  position: relative;
  width: auto;
  float: left;
  margin-bottom: 2rem;
}

#image-display {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  max-height: 20rem;
}

#image-display.loading {
  filter: brightness(30%);
}

#pred-result {
  color: white;
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
